import request from "@/utils/request";

// 查询gps设备历史告警列表
export function listGpsHistory(query) {
  return request({
    url: "/alarm/gpsHistory/list",
    method: "get",
    params: query
  });
}

// 查询gps设备历史告警详细
export function getGpsHistory(alarmId) {
  return request({
    url: "/alarm/gpsHistory/" + alarmId,
    method: "get"
  });
}

// 新增gps设备历史告警
export function addGpsHistory(data) {
  return request({
    url: "/alarm/gpsHistory",
    method: "post",
    data: data
  });
}

// 修改gps设备历史告警
export function updateGpsHistory(data) {
  return request({
    url: "/alarm/gpsHistory",
    method: "put",
    data: data
  });
}

// 删除gps设备历史告警
export function delGpsHistory(alarmId) {
  return request({
    url: "/alarm/gpsHistory/" + alarmId,
    method: "delete"
  });
}

// 导出gps设备历史告警
export function exportGpsHistory(query) {
  return request({
    url: "/alarm/gpsHistory/export",
    method: "get",
    params: query
  });
}
